window.onload = function ()
{
	/*轮播图的js*/
	// alert("loop.js连接成功");
	let photoLeft = document.getElementById("photoLeft");
	let left_photo = document.getElementsByClassName("left_photo");
	let num = -600;
	// left_photo[0].style.left = "-1200px";
	// left_photo[1].style.left = "-1200px";
	// left_photo[2].style.left = "-2400px";
	setInterval(()=>{
		// left_photo[index].style.left = `${num}px`;
		// index++;
		// left_photo[index].style.left = `${num}px`;
		// num += -1200;
		// left_photo[index].style.left = `${num}px`;
		photoLeft.style.left = `${num}px`;
		num +=-600;
		if(num < -2400)
	   {
		// photoLeft.style.left = `-1200px`;
		num = 0;
	   }
		
	},2000);
	/**********************/
	let menuEle = document.getElementsByClassName("menu");
	let center = document.getElementById("center");
	menuEle[1].onclick = function ()
	{
		fetchAPI("School_information.html",center);
		
	}
}